//
//  HWRechargeNoteModel.m
//  嗨文
//
//  Created by 响当当 on 4/23/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWRechargeNoteModel.h"

@implementation HWRechargeNoteModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.cashAmount = [[NSString stringWithFormat:@"%@",dic[@"cashAmount"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"cashAmount"]] :@"";
        self.goodsNum = [[NSString stringWithFormat:@"%@",dic[@"goodsNum"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"goodsNum"]] :@"";
        self.note = IFNULL(dic[@"note"], @"");
        self.payBillId = [[NSString stringWithFormat:@"%@",dic[@"payBillId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"payBillId"]] :@"";
        self.payTime = [[NSString stringWithFormat:@"%@",dic[@"payTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"payTime"]] :@"";
        self.payWay = [[NSString stringWithFormat:@"%@",dic[@"payWay"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"payWay"]] :@"";
    }
    return self;
}
@end
